package com.lcf.service.impl;

import com.lcf.dao.LogDao;
import com.lcf.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by Administrator on 2019/5/4.
 */
@Service
public class LogServiceImpl implements LogService {

    @Autowired
    private LogDao logDao;

    @Transactional(propagation = Propagation.NOT_SUPPORTED)
    @Override
    public void add(String param) {
        logDao.addLog(param);
        int i=1/0;
    }
}
